package com.app;


import com.jz.JZClient;
import com.jz.util.ShowOwnPID;

/**
 * Created by Administrator on 2015/10/22.
 */
public class AppDemo extends JZClient {

    public AppDemo() {
        super(false);
        init();
        Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
            public void run() {
                System.out.println("exit!!!");
            }
        }));
    }

    private void init() {
    }

    @Override
    public void clientInit() {

    }

    public String[] getExec() {
//        return new String[]{"java -jar F:\\A\\DemoUI.jar"};G:\yangbo\software\jdryjgui
        //TODO 必须全路径
        return new String[]{"D:\\Program Files\\Java\\jdk1.7.0_21\\bin\\java.exe", "-jar", "F:\\A\\Monitor.jar"};
//        return new String[]{"G:\\yangbo\\software\\jdryjgui.exe"};
//        return new String[]{"D:\\Program Files (x86)\\3ulast\\Skyview.exe"};
    }


    public static void main(String[] args) {
//        try {
//            Process process = Runtime.getRuntime().exec(new String[]{"C:\\Program Files\\Java\\jdk1.6.0_45\\bin\\java.exe","-jar","F:\\A\\DemoUI.jar"});
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
        System.out.println(ShowOwnPID.getPid());
        AppDemo la = new AppDemo();

    }
}
